<template>
	<view class="cuInput" :style="{width: width + 'rpx'}">
		<u-input :value=valuel  style="width: 90%;" @input="change" :placeholder="placeholder"/>
	</view>
</template>

<script>
	export default {
		name: "cu-input",
	
	props: {
	    // placeholder
	    placeholder: {
	        type: String,
	        default: '请输入内容'
	    },
	    width: {
	        type: String | Number,
	        default: 458,
	    },
		value: {
		    type: String | Number,
		    default: '',
		}
	},
	data(){
		return {
			valuel: this.value
		}
	},
	mounted() { },
		methods: {
			// change事件
	change(e) {
		console.log(e);
		this.$emit('input',e)
		this.$emit('change')
	}
		},
		}
</script>

<style>
	.cuInput {
		display: flex;
		padding-left: 24rpx;
		width: 458rpx;
		height: 76rpx;
		background: #FFFFFF;
		border-radius: 12rpx 12rpx 12rpx 12rpx;
		opacity: 1;
		border: 2rpx solid #DCDDE1;
	}
</style>